__author__ = 'alex'
import copy


menu = {
    'Beijing':{
        "ChaoYang":{
            "CBD": ['CICC','CCTV'],
            "JinRongJie":[""],
            "Wangjing":["Momo","ChuiZI"]
        },
        "HaiDian" : ['Baidu','YouKu']
    },

    'Shanghai':{
        "PuDong": ['Ctrip', "1 shop"],
        "PuXi" : ["China Bank", "America Bank"]
    },
    'SD': "SB"
}
'''
menu2 = copy.deepcopy(menu)
menu['Shanghai'] = {}
menu['SD'] = 'DSB'
menu['Beijing']['HaiDian'][0] = "Oldboy"
print id(menu['SD'])
print id(menu2['SD'])

print menu
print 'menu2:',menu2


dic1 = {1:2,2:3,3:4}
dic2 = {1:'test', 5:6}
print '--cmp-->',cmp(dic2,dic2)

dic1.update(dic2)
#print dic1
#print menu.items()

for k,v in menu.items()
for key in menu:
    print key, menu[key]
'''
eval()
py9= [1,4,6,3,8,6,1]
py9 = set(py9)
py10 = set([2,1,4,9,7])

print py9 & py10 #
print py9 | py10
print py9 - py10
print py10 - py9
print py10 ^ py9
print py10.issubset(py9)


